﻿using UnityEngine;
using System.Collections;

public class JiYiTeXiao : MonoBehaviour {

	Transform m_Transform;
	GameObject Player;
	void Start () {
		m_Transform = this.transform;
		Player = GameObject.FindGameObjectWithTag("Player");
	}

	void Update () {
	
		if(Player!=null)
		{
		   m_Transform.position = Player.transform.position;
		}else{
			Destroy(this.gameObject);
		}
	}
}
